package com.yy.service.ForegroundService;

import com.yy.domain.Product;

import java.util.List;
import java.util.Map;


public interface IProductService {
    List<Product> selectByNew();
    List<Product> selectByHot(int typeid);
    Map<String,Object> selectProductById(int id);
    List<Product> selectScProductById(Map<String, Object>  param);
    int insertProductByUser(Product product);
    List<Map<String,Object>> selectCommentById(int id);
    int insertProductToLove(Map<String, Object> param);
    int selectLoveById(Map<String, Object> param);
    int insertComment(Map<String, Object> param);
    List<Product> selectMyCollectById(int id);
    List<Map<String,Object>> selectMyProductById(int id);
    int updateProductByUser(Product product);
    int deleteProductById(int id);
    int deleteProductToLove(Map<String, Object> param);
    int updateCommentById(Map<String, Object> param);
    int soldOutProduct();
    List<Product> selectByCommend();
    int updateOrderProductStatus(Map<String, Object> map);
}
